import request from '@/utils/request'

export function GetStu () {
    return request({
        url: 'api/query/studentAll',
        method: 'post'
    })
}

export function GetNoStu (data) {
    return request({
        url: 'api/query/studentNo',
        method: 'post',
        data
    })
}

export function GetNameStu (data) {
    return request({
        url: 'api/query/studentName',
        method: 'post',
        data
    })
}

export function AddStu (data) {
    return request({
        url: 'api/insert/student',
        method: 'post',
        data
    })
}

export function DelStu (data) {
    return request({
        url: 'api/delete/student',
        method: 'post',
        data
    })
}

export function SetStu (data) {
    return request({
        url: 'api/update/major',
        method: 'post',
        data
    })
}
